# -*- coding: utf-8 -*-
"""
@Project: base_python
@File: language_surve.py
@Author: PC
@Date: 2025/2/12
@Description: 
"""
from unit.survey import AnonymousSurvey

# 定义一个问题，并创建一个表示调查的AnonymousSurvey对象
question = "What language did you first learn to speak?"
my_survey = AnonymousSurvey(question)
# 显示问题并存储答案
my_survey.show_question()
print("Enter 'q'at any time to quit.\n")
while True:
	response = input("Language:")
	if response == 'q':
		break
	my_survey.store_response(response)
# 显示调查结果
print("\nThank you to everyone who participated in the survey!")
my_survey.show_results()
